-- GENERATED SPELL FOR [Cursed Sea Dog] --


function spell0_24911(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(44961,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24911', 587, 1)
end

function Sorts_24911(pUnit, Event)
local choix_sorts_24911 = math.random(0, 0)
if choix_sorts_24911 == 0 then
pUnit:RegisterEvent('spell0_24911', 1, 1)
end
end

function mob24911_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24911', math.random(1500, 3000), 1)
end

function mob24911_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24911_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24911_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24911, 1, 'mob24911_Action')
RegisterUnitEvent(24911, 2, 'mob24911_Leave')
RegisterUnitEvent(24911, 3, 'mob24911_Kill')
RegisterUnitEvent(24911, 4, 'mob24911_Die')
